package com.crm.crm.domain.Login;

import com.crm.crm.domain.Dept;
import com.crm.crm.domain.role.SysRole;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginUser {
    private String createBy;
    private LocalDateTime createTime;
    private String updateBy;
    private LocalDateTime updateTime;
    private Integer userId;
    private Integer deptId;
    private String userName;
    private String nickName;
    private String email;
    private String phonenumber;
    private String sex;
    private String avatar;
    private String salt;
    private String status;
    private String delFlag;
    private String loginIp;
    private LocalDateTime loginDate;
    private Dept dept;
    private List<SysRole> roles;
    private Object roleIds; // 原JSON中为null，可根据实际情况调整类型
    private Boolean admin;
}
